<template>
	<view v-if="pageData && pageData.length && !chat_Id">
		<movable-area class="movableArea">
			<movable-view class="BOX" direction="all" :x="moveX" :y="moveY" @click="newChatBtn">
				<view class="iconfont icon-jiahao"></view>
			</movable-view>
		</movable-area>
	</view>
</template>

<script setup>
	import { toUrl, Toast, staticImg, imgUrls } from '@/utils/utils.js';
	import { ref, defineEmits } from 'vue';
	import { useMainStore } from '@/stores/index';

	const mainStore = useMainStore();
	const props = defineProps(['pageData', 'chat_Id']);
	const emit = defineEmits(['newChat']);
	const moveX = ref(320);
	const moveY = ref(570);

	const newChatBtn = () => {
		emit('newChat');
	};
</script>

<style lang="scss" scoped>
	.movableArea {
		position: fixed;
		width: 100%;
		height: 100%;
		top: 0;
		left: 0;
		pointer-events: none;
		z-index: 1001;
		box-sizing: border-box;
	}
	.BOX {
		width: 68rpx;
		height: 68rpx;
		background-color: $color_008;
		border-radius: 50%;
		display: flex;
		justify-content: center;
		align-items: center;
		pointer-events: auto;
		.icon-jiahao {
			color: #fff;
			font-size: 50rpx;
		}
	}
</style>
